<html>
<head>
	<title>Customers</title>
</head>

<body>
	<h1>This is the List of Customers</h1>
	<?php echo anchor('customers','Back to main customers page'); ?>

	<table border="1" style="border-collapse: collapse;">
	  <thead>
	   <tr>
	    <th>Last Name</th>
	    <th>First Name</th>
	    <th>Update</th>
	    <th>Delete</th>
	   </tr>
	  </thead>
	  <tbody>
	
	<?php foreach ($result as $row): ?>
	   <tr>
	    <td><?=$row->last_name ?></td>
	    <td><?=$row->first_name ?></td>
	    <td><?=anchor('customers/add/'.$row->customer_id,'update')?></td>
	    <td><?=anchor('customers/delete/'.$row->customer_id,'delete')?></td>
	   </tr>
	<?php endforeach; ?>
	</tbody>
</table>
	
</body>

</html>

